package com.system.manager.common.constant;

/**
 * 系统常量
 *
 * @author meteor
 */
public class SysConstants {
    /**
     * 在jwt生成token里面存储subject的id的字段名称
     */
    public static final String CLAIM_SUBJECT_ID = "id";

    /**
     * 存储在HttpServletRequest里面当前登录的subject的键
     */
    public static final String HTTP_ATTRIBUTE_SUBJECT = "current_subject";

    /**
     * 存储在HttpServletRequest里面当前的用户访问信息
     */
    public static final String HTTP_ATTRIBUTE_ACCESS_INFO = "access_info";


    /**
     * 存储在HttpServletRequest里面的认证错误的信息
     */
    public static final String AUTHORIZATION_ERROR_CODE = "AUTHORIZATION_ERROR_CODE";

    public static final long DEFAULT_MAX_SIZE = 1024 * 1024 * 3;


    /**
     *
     */
    public static final String THREAD_LOCAL_KEY_PREVENT_DUPLICATE_REDIS_LOCK = "THREAD_LOCAL_KEY_PREVENT_DUPLICATE_REDIS_LOCK";
    public static final String SYS_ID = "SYS";

    public static final String SYS_NAME = "系统";
    public static final String DEFAULT_PASSWORD = "111111";

    public static final String FILE_STORE_PATH = "/school/images/course/";// 文件存储路径
    public static final String FILE_UPLOAD_PATH = "/usr/local/nginx/school/images/course/";// 文件上传路径


    public static final String CURR_SYS_IP_ADDR = "";

    //    public static final String SYS_FILE_STORE_PATH = "/system/pdf/"; // pdf的html文件所在的位置
    public static final String SYS_FILE_STORE_PATH = "../images/"; // pdf的html文件所在的位置

    //    public static final String SYS_OUT_DIR = "/usr/local/nginx" + SYS_FILE_STORE_PATH;  // pdf的输出路径
    public static final String SYS_OUT_DIR = System.getProperty("user.dir") + "\\src\\main\\resources\\template\\layuimini\\images\\";  // 生成文件的输出路径

    //    public static final String SYS_TEMPLATE_HTML_DIR = "/usr/local/nginx/system/page/"; // pdf的html文件所在的位置
    public static final String SYS_TEMPLATE_HTML_DIR = System.getProperty("user.dir") + "\\src\\main\\resources\\template\\layuimini\\page\\"; // html模板文件所在的位置

    //    public static final String SYS_TEMPLATE_HTML_NAME = "pdf-template.html"; // pdf的html的名字
    public static final String SYS_TEMPLATE_HTML_NAME = "test_template.html"; // pdf的html文件所在的位置


}
